package com.ants.boot.core.security.jwt;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 蚂蚁会花呗
 * @date 2022/2/14 15:03
 *
 *
 */
@ConfigurationProperties(
        prefix = "jwt.token"
)
@Component
public class JwtTokenProperties {

    /**
     * jwt token 秘钥
     */
    private String tokenSecret;

    /**
     * 时间，毫秒
     */
    private long tokenExpiredMs;

    /**
     * 临近多少过期时间
     */
    private long tokenRefreshMs;


    public String getTokenSecret() {
        return tokenSecret;
    }

    public void setTokenSecret(String tokenSecret) {
        this.tokenSecret = tokenSecret;
    }

    public long getTokenExpiredMs() {
        return tokenExpiredMs;
    }

    public void setTokenExpiredMs(long tokenExpiredMs) {
        this.tokenExpiredMs = tokenExpiredMs;
    }

    public long getTokenRefreshMs() {
        return tokenRefreshMs;
    }

    public void setTokenRefreshMs(long tokenRefreshMs) {
        this.tokenRefreshMs = tokenRefreshMs;
    }
}
